﻿@model Inscriptionem.Models.Views.RemindViewModel

@{
    ViewBag.Title = Inscriptionem.Configuration.Configuration.Instance.General.Title + " » Remind";
    Layout = "Layout.cshtml";
    
    string message = string.Empty;

    switch (Model.Error)
    {
        case Inscriptionem.Models.Enums.RemindError.None:
            {
                break;
            }
        case Inscriptionem.Models.Enums.RemindError.EmptyMail:
            {
                message = "Please enter mail.";
                break;
            }
        case Inscriptionem.Models.Enums.RemindError.InvalidMail:
        case Inscriptionem.Models.Enums.RemindError.UnexistingMail:
            {
                message = "Please enter valid mail.";
                break;
            }
        default:
            {
                message = "Unknown error occurred, please try again.";
                break;
            }
    }
}
<div class="outer" id="contentwrap">
    <div class="postcont">
		<div id="content">	
			<div class="post type-post status-publish format-standard hentry">
				<h2 class="title" style="text-align: center;">Remind</h2>
			</div>
            <div class="postdate-single login-error">@message</div>
            <div class="postdate-single">
                <form action="/@(Model.Language)/Login/Remind" method="POST">
                    <div style="float:left; width:40%; text-align: right;">
                        <p class="login-paragraph">Mail</p>
                    </div>
                    <div>
                        <p class="login-paragraph"><input type="text" name="Mail" class="login-input" value="@Model.Mail"/></p>
                    </div>
                    <div class="clear"></div>
                    <div class="login-buttons"><input type="reset" value="Reset"/>&nbsp|&nbsp;<input type="submit" value="Remind"/></div>
                </form>
            </div>
		</div>
    </div>
</div>